//
//  WYTVideoCell.m
//  WuyouTang
//
//  Created by yunbao02 on 2024/8/26.
//  Copyright © 2024 cat. All rights reserved.
//

#import "WYTVideoCell.h"

@implementation WYTVideoCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}


- (void)setDataDic:(NSDictionary *)dataDic {
    _dataDic = dataDic;
    NSDictionary *userInfoDic = @{};
    if ([[_dataDic valueForKey:@"userinfo"] isKindOfClass:[NSDictionary class]]) {
        userInfoDic = [_dataDic valueForKey:@"userinfo"];
    }
    [_thumbIV sd_setImageWithURL:[NSURL URLWithString:minstr([_dataDic valueForKey:@"thumb"])]];
    _titleL.text = minstr([_dataDic valueForKey:@"title"]);
    [_iconIV sd_setImageWithURL:[NSURL URLWithString:minstr([_dataDic valueForKey:@"avatar"])]];
    _nameL.text = minstr([userInfoDic valueForKey:@"user_nickname"]);
    _distanceL.text = strFormat([_dataDic valueForKey:@"distance"]);
}

@end
